<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百家云-用户登录</title>
    <link rel="stylesheet" href="./css/login.css">
    <link rel="stylesheet" href="./css/global.css">
</head>
<%session.removeAttribute("loginuser"); %>
<body>
	<jsp:include page="head.jsp"/>
    <div class="login">
        <div class="login_center">
            <img src="./img/login.png" alt="" class="login_img">
            <div class="login_form">
                <div class="tabs">
                    <div class="tab">用户登录</div>
                </div>
                <div class="form_body">
                    <form action="${pageContext.request.contextPath }/UserServlet?method=login" method="post">
                        <input type="text" name="loginName" placeholder="请输入用户名" required>
                        
                        <input type="password" name="loginPwd" placeholder="6-10位密码，可用数字/字母/符号组合" required minlength="6" maxlength="10">
                        <input type="submit" value="登录">
                    </form>
                    <a href="register.jsp" class="is_go fl">用户注册</a>
                    <a href="reset.jsp" class="is_go fr">忘记密码</a>
                </div>
            </div>
        </div>
    </div>
    <jsp:include page="footer.jsp"/>
</body>

</html>
<%
	String msg=(String)session.getAttribute("msg");
	if(msg!=null){
		out.print("<script>alert('"+msg+"')</script>");
		session.removeAttribute("msg");
	}
%> 